Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (excluding subdirectories) are displayed in the directory, and H means that the max-depth represents the depth of the directory in a way that humans can read.
The du
DF-HL View disk remaining space
Du-sm folder
Returns the total m of this folder
More features please view:
DF--help
Du--help
Du-sh (the name of this directory) is the size of this directory.
Use the du command to view a directory, such as
In Linux, the df and du commands for viewing files and folders will trigger an alarm when the disk size exceeds the standard. In this case, it is wise to master the df and du commands. Df allows you to view the size, usage ratio, file system, and
Du and DF[[email protected] samba]# dumpe2fs/dev/sda3|grep "Block size" 4096 bytesThe actual size of the du content, in bytes, added to the statistical file sizeDF occupies space size, in blocks, statistics block usageThe du-s command increments the
du [-ABCDHHKLMSSX] [-l ][-x ][--block-size][--exclude=][--help][--version][directory or file]Common parameters:- A or-all displays disk usage for each specified file, or displays the respective disk usage for each file in the directory. - B or-bytes
UseStatistics file or directory occupies hard disk space sizeUsagedu [OPTION] [FILE]Du [OPTION]--files0-from=fCommon parameters-A,--allCount all files, not just directories-B,--bytesBytes in units of statistics-C,--totalTotal output
1. Preface
In embedded devices, hard disk space is very limited, when it comes to the process of often write log, you need to consider the size of the log and delete, or soon the hard disk is full, causing the log program crashes. In order to
du:show Disk usageRole: The size of the disk space occupied by the statistics directory or file.syntax: du parameter optionsParameters:
-A to display disk usage for each file, or to display the respective disk usage for each file in the
Du command: Disk usage, as the name implies, is about directory usage. Yes, it works by calculating the size of the directory.1.To see the size of all directories and subdirectories in the current directory:# du-h.“.” Represents the current
Du command: Disk usage, as the name implies, is about directory usage, and its function is to calculate the size of the directory.1.To see the size of all directories and subdirectories in the current directory:# du-h.“.” Represents the current
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.